package com.smartcommunity.entity.village;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author heweiwei
 * @date 2018/7/16
 */
@Data
public class RealPowerOrg implements Serializable {
    private static final long serialVersionUID = -1L;
    /**
     * 小区编码
     */
    private String villageCode;

    /**
     * 小区名
     */
    private String villageName;

    /**
     * 保安数量
     */
    private Integer securityCount;

    /**
     * 保洁数量
     */
    private Integer cleanCount;

    /**
     * 保绿数量
     */
    private Integer greenCount;

    /**
     * 居委干部数量
     */
    private Integer cadresCount;

    /**
     * 警员数量
     */
    private Integer policeCount;

    /**
     * 快递人员数量
     */
    private Integer courierCount;

    /**
     * 楼组长数量
     */
    private Integer lzzCount;

    /**
     * 志愿者数量
     */
    private Integer volunteerCount;

    /**
     * 父级机构id
     */
    private Integer parentId;


    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof RealPowerOrg)) {
            return false;
        }
        RealPowerOrg that = (RealPowerOrg) o;
        return Objects.equals(villageCode, that.villageCode) &&
                Objects.equals(villageName, that.villageName) &&
                Objects.equals(parentId, that.parentId);
    }

    @Override
    public int hashCode() {

        return Objects.hash(villageCode, villageName, parentId);
    }
}
